package cn.com.qtgl.apis.iam.model.beans;

import cn.hutool.core.lang.Assert;
import lombok.Getter;

@Getter
public class DeptPostFlag implements UserFilterApi,UserFilterUnit{

    private final PostFlag postFlag;

    private final DeptFlag deptFlag;
    public DeptPostFlag( DeptFlag deptFlag,PostFlag postFlag) {
        Assert.notNull(deptFlag,"部门不能为空");
        Assert.notNull(postFlag,"岗位不能为空");
        this.postFlag = postFlag;
        this.deptFlag = deptFlag;
    }
    @Override
    public String getContent() {
        return deptFlag.getContent()+postFlag.getContent();
    }
}
